﻿using System;

namespace FoundationLib.Common.Collections
{
	/// <summary>
	/// This enumeration provides a list of actions to take if a duplicate item is about to be added to 
	/// a collection.
	/// </summary>
	public enum DuplicateAction
	{
		/// <summary>
		/// Throw an exception.
		/// </summary>
		ThrowException,
		/// <summary>
		/// Silently ignore the item and do not add it to the collection.
		/// </summary>
		Ignore,
		/// <summary>
		/// Allow the item to be added to the collection.
		/// </summary>
		Allow
	}
}